<?php 

	$user_type = $this->session->userdata("USER_TYPE");
	if($user_type == "EW"){
		$user_mail = $this->session->userdata("USER_ID");
	}
	else{
		$user_mail = $this->session->userdata("EMAIL");
	}
	$first_name = $this->session->userdata("FIRST_NAME");
	$last_name = $this->session->userdata("LAST_NAME");
	$status = $this->session->userdata("STATUS");
	$last_login = date("j/m/Y g:i A", strtotime($this->session->userdata("LAST_LOGIN")));
	$last_ip = $this->session->userdata("LAST_IP");
	$html = "Hello, " . $first_name . " " . $last_name;
	$person_identification = anchor("user/account", $first_name . " " . $last_name);
	$html .= "&nbsp;" . anchor("logout", "(Log Out)");
	$is_verified = $status ? "Verified" : "Not verified";
	$html .= "<br /> <span class='titles'><strong>Owner:</strong></span><span class='blue_vals'><strong>$person_identification</strong></span>
				<br />
				<span class='titles'><strong>Status:</strong></span><span class='blue_vals'><strong>$is_verified</strong></span>
				
				<div id='last_login' class='user_info_gray'>
					Last login: $last_login,<br />
					Email: $user_mail,<br />
					IP: $last_ip	
				</div>";
	
	
	
	$data["html"] = $html;
	echo $this->load->view("user/info_container", $data, true);
//	echo $html;
?>